package com.yyh.photo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyh.photo.domain.CommodityDomain;
import com.yyh.photo.entity.CommodityEntity;

import java.util.List;

/**
 *  service 接口
 *
 * @author jxjk.safe

 * @date 2023-06-07 17:15:10
 */
public interface CommodityService extends IService<CommodityEntity> {
    /**
    * 分页查询
    * @param pageParam
    * @param commodityDomain
    * @return
    */
    List<CommodityDomain> pageQuery(Page<CommodityDomain> pageParam, CommodityDomain commodityDomain);

    boolean saveCommodity(CommodityDomain commodityEntity);

    CommodityDomain getDetailById(Integer id);

    List<CommodityDomain> getlist(CommodityDomain commodityDomain);
}

